package com.ccz.demo.design.builder.demo2;

public class Director {

    private Builder builder;


    public Director(Builder builder) {
        this.builder = builder;
    }

    public Product getProduct(String name, String desc){
        this.builder.createProductName(name);
        this.builder.createProductDesc(desc);
        return this.builder.showProduct();
    }

}
